//
//  MyTool.h
//  goldmetal
//
//  Created by mac on 2017/1/19.
//  Copyright © 2017年 宏鹿. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MyTool : NSObject

+ (NSURL *)URLWithImgStr:(NSString *)imgStr;

+ (void)writeValue:(id)value forKey:(NSString *)str;
+ (id)readValueForKey:(NSString *)str;

//计算一段文字的高度
+ (CGSize)stringText:(NSString *)text sizeWithFont:(UIFont *)font maxW:(CGFloat)maxW;

//处理图片的方向信息
+ (UIImage *)fixOrientation:(UIImage *)aImage ;

//判断是否含有表情
+(BOOL)stringContainsEmoji:(NSString *)string;

@end
